import 'package:flutter/material.dart';

class MyCard extends StatelessWidget {

  Color? color;
  double? height;
  double? width;
  String title;
  IconData? icons;

  @override
  Widget build(BuildContext context) {
    return Container(
      height: height,
      width: width,
      padding: EdgeInsets.all(10),
      decoration: BoxDecoration(
        color: color,
        borderRadius: BorderRadius.circular(10)
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [Icon(icons,size: 30,color: Colors.blue,),Text(title)],
      ),
    );
  }

  MyCard( this.title,{super.key, this.icons = Icons.add,this.color = Colors.blue, this.height= 60, this.width = double.infinity});
}
